#!/bin/sh ~/.bashrc: executed by bash(1) for non-login interactive shells.

export PATH=\
/bin:\
/sbin:\
/usr/bin:\
/usr/sbin:\
/usr/bin/X11:\
/usr/local/bin:\
/usr/local/opendomo

# If running interactively, then:
if [ "$PS1" ]; then
	if [ "`id -u`" -eq 0 ]; then 
		export PS1='# '
	else
		export PS1='$ '
	fi

	export USER=`id -un`
	export LOGNAME=$USER
	export HOSTNAME=`/bin/hostname`
	export HISTSIZE=1000
	export HISTFILESIZE=1000
	export PAGER='/bin/more '
	export EDITOR='/bin/vi'
	export INPUTRC=/etc/inputrc
	export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
	export TZ=`cat /etc/TZ`

	### Some aliases
	alias ps2='ps facux '
	alias ps1='ps faxo "%U %t %p %a" '
	alias af='ps af'
	alias cls='clear'
	alias dir="ls -lah"
	alias help="cd /usr/local/opendomo; grep '#desc' *.sh"
	alias shutdown="/etc/init.d/rcS shutdown"
fi;

export OD_SESSION_FILE=/var/opendomo/session
export OD_USER_CONF_DIR=/var/opendomo/userconf
export OD_APP_CONF_DIR=/etc/opendomo
if test -f $HOME/lang; then
	export L="`cat $HOME/lang`"
else
	export L="`cat /etc/opendomo/i18n/lang`"
fi
kmap=`echo $L | cut -f1 -d_`
if test -f /usr/share/keymaps/$kmap.bmap; then
	loadkmap < /usr/share/keymaps/$kmap.bmap
else
	echo "Keymap '$kmap' not found. "
fi
